-- GENERATED SPELL FOR [Winter Revenant] --


function spell0_34134(pUnit, Event) --@Blizzard,n/a--
pUnit:FullCastSpellOnTarget(64642,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34134', 7300, 1)
end

function spell1_34134(pUnit, Event) --@Blizzard,n/a--
pUnit:FullCastSpellOnTarget(64653,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34134', 7300, 1)
end

function spell2_34134(pUnit, Event) --@Shield of the Winter Revenant,Self--
pUnit:FullCastSpellOnTarget(64644,pUnit)
pUnit:RegisterEvent('Sorts_34134', 575, 1)
end

function spell3_34134(pUnit, Event) --@Whirling Strike,Self--
pUnit:FullCastSpellOnTarget(64643,pUnit)
pUnit:RegisterEvent('Sorts_34134', 607, 1)
end

function Sorts_34134(pUnit, Event)
local choix_sorts_34134 = math.random(0, 3)
if choix_sorts_34134 == 0 then
pUnit:RegisterEvent('spell0_34134', 1, 1)
end
if choix_sorts_34134 == 1 then
pUnit:RegisterEvent('spell1_34134', 1, 1)
end
if choix_sorts_34134 == 2 then
pUnit:RegisterEvent('spell2_34134', 1, 1)
end
if choix_sorts_34134 == 3 then
pUnit:RegisterEvent('spell3_34134', 1, 1)
end
end

function mob34134_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34134', math.random(1500, 3000), 1)
end

function mob34134_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34134_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34134_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34134, 1, 'mob34134_Action')
RegisterUnitEvent(34134, 2, 'mob34134_Leave')
RegisterUnitEvent(34134, 3, 'mob34134_Kill')
RegisterUnitEvent(34134, 4, 'mob34134_Die')
